import React, { useState } from 'react';
import { Input, Divider } from 'antd';
import Count from './index_index1';

export default (props) => {
    const [countValue, SetCountValue] = useState(null);
    const handleChangeValue = (value) => {
        SetCountValue(value);
    }
    return (
        <div>
            <Input
                style={{ width: 200 }}
                onChange={(e) => handleChangeValue(e.target.value)}
            />
            <Divider />
            <Count value={countValue} />
        </div>
    )
}